package com.fenghongzhang.day003;

import android.graphics.Color;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //设置当前的页面的显示xml
        /**
         * R自动加载. 重启
         */
        setContentView(R.layout.activity_main); //姓名
        TextView textView = findViewById(R.id.name);

        textView.setText("哈哈哈"); //改了
        textView.setTextSize(50);

        TextView textView1 = findViewById(R.id.myname);
        textView1.setText("很好.");

        TextView textView2 = findViewById(R.id.myname1);
        textView2.setTextColor(Color.parseColor("#ff0000"));


    }
}
